<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:c="http://java.sun.com/jsp/jstl/core">

    <body>

        <ui:composition template="./Test.xhtml">



            <ui:define name="content">

                <fieldset style="height: 300px">
                    <legend><b>Add new Time Set</b></legend>


                    <table width="457" height="190" border="0">
                        <tr>
                            <td width="154"><b> Release Date *</b></td>
                            <td width="273"> <p:calendar id="releaseDate" value="#{timeSetBean.ts.dateRelease}" required="true" requiredMessage="Release Date is not null">

                                </p:calendar>
                                <h:messages for="releaseDate"/></td>
                        </tr>
                        <tr>
                            <td width="154"><b> Hours Start *</b></td>
                            <td width="273"> <p:inputText id="hoursStart" value="#{timeSetBean.ts.hoursStart}" required="true" requiredMessage="Hours Start is not null">
                                    <f:validator validatorId="Validator.StringValidator"/>
                                </p:inputText>
                                <h:messages for="hoursStart" id="msg"/></td>
                        </tr>
                        <tr>
                            <td><b> Hours End *</b></td>
                            <td> <p:inputText id="hoursEnd" value="#{timeSetBean.ts.hoursEnd}" required="true" requiredMessage="Hours End is not null">
                                    <f:validator validatorId="Validator.StringValidator"/>
                                </p:inputText>
                                <h:messages for="hoursEnd" /></td>
                        </tr>
                        <tr>
                            <td><h:commandButton action="TimeSet" actionListener="#{timeSetBean.insertTimeSet}" value="Add new" type="image" image="../resources/images/forms/form_submit.gif"></h:commandButton></td>
                            <td><h:commandButton action="TimeSet" value="Cancel" type="image" image="../resources/images/forms/form_reset.gif"/></td>
                        </tr>
                    </table>

                </fieldset>


            </ui:define>



        </ui:composition>

    </body>
</html>
